import request from '@/utils/request'

export function getList(query) {
  return request({
    url: '/orderMgt/getList',
    method: 'post',
    data: query
  })
}

// 获取订单下的详细信息
export function getGoodsInfo(data) {
  return request({
    url: '/orderMgt/getDetail',
    method: 'post',
    data: data
  })
}

// 订单发运
export function delivery(data) {
  return request({
    url: '/orderMgt/delivery',
    method: 'post',
    data: data
  })
}

// 取消发运
export function cancelDelivery(data) {
  return request({
    url: '/orderMgt/cancelDelivery',
    method: 'post',
    data: data
  })
}

// deleteDelivery  删除订单
export function deleteDelivery(data) {
  return request({
    url: '/orderMgt/deleteDelivery',
    method: 'post',
    data: data
  })
}

// 已付款
export function payOff(data) {
  return request({
    url: '/orderMgt/payOff',
    method: 'post',
    data: data
  })
}

// 查询产品库存
export function searchProduction(query) {
  return request({
    url: '/order/searchProduction',
    method: 'post',
    data: query
  })
}

// 查询产品库存
export function getProductionDetail(query) {
  return request({
    url: '/order/getProductionDetail',
    method: 'post',
    data: query
  })
}
